-- SPDX-License-Identifier: GPL-3.0-or-later

--------------------------------------------------
--常驻牌：兔耳刀
--如果这张牌是印出来的，技能不触发。
--草，不是印的这技能也整个不触发，这张可怕的牌还没到现世的时候。
--------------------------------------------------

-- local v_rabbitEarSwordSkill = fk.CreateTriggerSkill{  --需要一个空技能以判断equip_skill是否无效
--   name = "#v_rabbit_ear_sword_skill",
--   attached_equip = "v_rabbit_ear_sword",
-- }

-- Fk:addSkill(v_rabbitEarSwordSkill)

-- local v_rabbitEarSword = fk.CreateWeapon{
--   name = "v_rabbit_ear_sword",
--   -- suit = Card.Spade,
--   -- number = 7,
--   attack_range = 2,
--   equip_skill = v_rabbitEarSwordSkill,
--   on_install = function(self, room, player)
--     -- Weapon.onInstall(self, room, player)
--     -- if player:getMark("@@v_res_used-turn") == 0 then
--     print("in")
--     if player:isAlive() and self.equip_skill:isEffectable(player) then
--       print(1)
--       for i = 1, 2 do
--         local cd = room:printCard("v_rabbit_ear_sword", Card.Spade, 7)
--         VslUtil.return_draw_pile(player, {cd}, self.name)
--         -- local ram = math.random(1, #room.draw_pile + 1)
--         room:setCardMark(cd, "@v_test-phase", 1)
--         -- room:moveCards({
--         --   ids = {cd},
--         --   from = player.id,
--         --   toArea = Card.DrawPile,
--         --   moveReason = fk.ReasonJustMove,
--         --   skillName = self.name,
--         --   drawPilePosition = ram,
--         -- })
--       end
--       room:addPlayerMark(player, "@v_res_used-turn", 1)
--     end

--     --   room:addPlayerMark("@@v_res_used-turn", 1)
--     -- end
--   end,
-- }
-- extension:addCards{
--   v_rabbitEarSword:clone(Card.Spade, 7),
-- }